package com.ruoyi.common.core.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * @Classname ISelect
 * @Author: sunluquan
 * @Date: 2021/12/29 13:34
 * @Description TODO
 */
@Data
public class Select implements Serializable {

    private static final long serialVersionUID = 1L;

    public Select() {
    }

    public Select(Serializable value, Serializable label) {
        this.value = value;
        this.label = label;
    }

    /**
     * select选择器的value属性值
     * @return
     */
    private Serializable value;

    /**
     * select选择器的option的显示值
     * @return
     */
    private Serializable label;


    /**
     * 用于特殊情况的参数容器
     * @return
     */
    private Object data;
    /**
     * select选择器的禁用属性  默认可选择
     * @return
     */
    private boolean disable;

    /**
     * select选择器的排序 按照从大到小排序
     */
    private int weight = -1;

}
